import request from '@/utils/request'

// 查询生产线半成品检验记录列表
export function listSemifinished(query) {
  return request({
    url: '/productionProcess/semifinished/list',
    method: 'get',
    params: query
  })
}
//缺陷统计
export function qxtj(query) {
  return request({
    url: '/productionProcess/semifinished/qxtj',
    method: 'get',
    params: query
  })
}


// 查询生产线半成品检验记录详细
export function getSemifinished(id) {
  return request({
    url: '/productionProcess/semifinished/' + id,
    method: 'get'
  })
}

// 新增生产线半成品检验记录
export function addSemifinished(data) {
  return request({
    url: '/productionProcess/semifinished',
    method: 'post',
    data: data
  })
}

// 修改生产线半成品检验记录
export function updateSemifinished(data) {
  return request({
    url: '/productionProcess/semifinished',
    method: 'put',
    data: data
  })
}
export function checkSemifinished(data) {
  return request({
    url: '/productionProcess/semifinished/check',
    method: 'put',
    data: data
  })
}
// 删除生产线半成品检验记录
export function delSemifinished(id) {
  return request({
    url: '/productionProcess/semifinished/' + id,
    method: 'delete'
  })
}
